#include <stdio.h>

int main(int argc, char *argv[])
{

    int *pn, *pm, n, m;
    scanf("%d %d", &n, &m);
    pn = &n, pm = &m;

    if (*pn > *pm)
    {
        printf("%d ", *pn);
        printf("%d", *pm);
    }
    else
    {
        printf("%d ", *pm);
        printf("%d", *pn);
    }

    return 0;
}